FROM alpine
MAINTAINER douxuefeng
ENV TZ=Asia/Shanghai
RUN echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories \
    && apk add -U tzdata \
    && cp /usr/share/zoneinfo/$TZ /etc/localtime \
    && echo '$TZ' > /etc/timezone
WORKDIR /app
COPY go-iris .
COPY config/config.yaml .
EXPOSE 8081
ENTRYPOINT [ "/app/go-iris" ]